module.exports = class SyncBailHook {
  constructor(args){
      this.tasks = []
  }
  tap(name,task){
   this.tasks.push(task)
  }
  call(...args){
    let ret;
    let i = 0
    do {
      ret = this.tasks[i++](...args)
    } while (ret === undefined && i < this.tasks.length);
  }
}
